package tmt.usercenter.web.repository;


import com.tmt.jpa.jpaservice.ITmtBaseRepo;
import tmt.usercenter.web.domain.TmtUser;
import tmt.usercenter.web.domain.UserBinding;
import tmt.usercenter.web.domain.enums.UserBindingType;

public interface IUserBindingRepo extends ITmtBaseRepo<UserBinding, Long> {

    UserBinding findByOpenIdAndBindingType(String openId, UserBindingType type);

    UserBinding findByUserIdAndBindingType(Long userId, UserBindingType type);
}
